home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Design
/
WB Collection.iso
/
workbench werkzeuge
/
appicon tools
/
etrashcan
/
etrashcan_v1.1.guide
(
.txt
)
< prev
next >
Wrap
Amigaguide Document
|
1996-04-07
|
9KB
|
180 lines
@database 002e6048-0
@master ETrashCan_V1.1.guide
@$VER: 1.1
@author "Andrew Cook"
@(c) "Andrew Cook"
@remark Created with Heddley v1.1 (c) Edd Dumbill 1994
@node "Main" "Welcome to ETrashCan"
@{b}ETrashCan Version 1.1@{ub} (10.12.95)
@{"Introduction" link "Introduction" 0}
@{"Features" link "Features" 0}
@{"What
it" link "Requirements" 0}
@{"How
ETrashCan" link "Usage" 0}
@{"How
configure
ETrashCan" link "config" 0}
@{"About
Author/Development
system" link "Author" 0}
@{"Icky
Legal
Stuff" link "Legal" 0}
@{"History" link "history" 0}
@endnode
@node "Introduction" "Introduction to ETrashCan"
@{b}Introduction@{ub}
I used to use a program called @{"TrashIcon" link "TrashIcon" 0}. It put up a little picture of a
trashcan on the workbench, and deleted files you dragged over it. It would
override file protections if you wanted it to, and recursively delete
directories. Very nice it was too. It's big drawback was that it instantly
deleted what you dragged over it, no second chances. One day I managed to
delete a rather large file that I'd just downloaded. After that I stopped
running TrashIcon
I browsed through similar programs on Aminet, but they all seemed to do the
same thing. Instant delete and no way to recover the file.
I'd just registered the @{"E
compiler" link "E_compiler" 0}, so I decided to get back into Amiga OS
programming and learn E at the same time, by writing a trashcan program that
worked how I wanted it to.
My initial thought was to move all the files dropped on the trashcan into a
directory, the contents of which could then be deleted later. The problem was
where to put this directory. With the directory on any given volume a file may
not fit in, and on a floppy based system the volume may not be available when
needed.
So I decided to use the :trashcan directory on the same volume as the file to
be deleted. Once an icon is dropped onto the trashcan the disk that icon is on
is checked for a directory in it's root called 'trashcan'. If it doesn't exist
it is created. The file and it's icon are then moved into it.
When a uses chooses to empty the trash, all files in ':trashcan' directories
on all the mounted volumes are recursively deleted. At this point protection
bits are ignored.
@endnode
@node "Features" "Features of ETrashCan"
Why should you use this program rather than one of the myriad of other
trashcan programs floating around ?
@{b}o@{ub} Easy File Recovery - just drag the files out of the trashcan
@{b}o@{ub} Icon image shows if there are any files in the trashcan
@{b}o@{ub} It's free. Just send @{"me" link "Author" 0} some mail. Not shareware like some.
@{b}o@{ub} @{"Set
icontext" link "config" 0}
@{b}o@{ub} @{"Set
position
icon" link "config" 0} on Workbench
@endnode
@node "Requirements" "Requirements"
@{b}What do you need to run ETrashCan ?@{ub}
@{b}o@{ub} An Amiga :-)
@{b}o@{ub} Workbench 3.0 or above.
@{b}o@{ub} It works best with hard drives (doesn't everything)
@endnode
@node "Usage" "How to use ETrashCan"
@{b}ETrashCan may only be run from WorkBench@{ub}. If run from the CLI it will put up a
requester saying so, then quit.
To run it whenever you reboot your Amiga put in in the WBStartup drawer.
When started an appicon will appear on the Workbench screen. It will attempt
to use the icons specified in the @{b}TRASHCAN_FULL@{ub} and @{b}TRASHCAN_EMPTY@{ub} @{"tooltypes" link "config" 0}
for it's imagery. Failing that it will default to the image stored in
'@{b}env:sys/def_trashcan@{ub}' for both full and empty states.
If you have a file or directory to delete drag it over the trashcan. It will
be moved into the ':trashcan' directory that is on the same device. If that
directory doesn't exist it will be created. If you decide you didn't want to
get rid of it after all, just open up the trashcan directory and drag the file
out again, back to where you want it.
To actually delete all the files you have dragged into the trashcan, double
click on the trashcan icon and choose 'Empty Trash' from the requester. The
program will scan all mounted volumes for ':trashcan' directories and delete
all files in those directories. It will delete files regardless of protection
bits.
@endnode
@node "config" "Configuration"
Currently ETrashCan is configured via it's tooltypes. I may add a preference
editor at a later date
Current tooltypes are:
@{b}XPOS@{ub} The x position of the appicon on the Workbench Screen
@{b}YPOS@{ub} The y position of the appicon on the WorkBench Screen
If these are not set, or the values are such that the icon wouldn't fit on
the screen, it will be placed in a default position
@{b}ICONNAME@{ub} The text to appear under the appicon
If this is not set, the default 'ETrashCan' will be used.
@{b}TRASHCAN_FULL@{ub} The path to the icon to use to represent the full
trashcan
@{b}TRASHCAN_EMPTY@{ub} The icon that shows the empty trashcan
Give the filename for the icons, without the .info extension, eg mine are in
MagicWB:Trashcan_empty and MagicWB:Trashcan_full. The supplied tooltypes
expect to find these icons (samples included in the archive) in the same
directory as the program. If either these tooltypes are missing or the
specified icon files can't be found, the default trashcan will be used.
@{b}DONOTWAIT@{ub} A standard tooltype for running from the WBstartup
drawer. ETrashCan itself ignores it.
@endnode
@node "Author" "About the Author"
ETrashCan version 1.1 was written by:
Andrew Cook
147 Blackshaw Road
London, SW17 0BU
England
Email: sgms107@sghms.ac.uk (preferred)
rhialto@falu.demon.co.uk
rhialto@tao.btc.uwe.ac.uk
URL: http://tao.btc.uwe.ac.uk/~rhialto
It was developed on a 68030 based Amiga 1200 with 2MB chip and 4MB fast RAM,
200MB hard drive with OS 3.0
It was written using @{"Amiga
E" link "E_compiler" 0} v3.2e.
If you like and use ETrashCan please let me know. EMail would be fine, though
would prefer a nice scenic postcard of where you live.
@endnode
@node "TrashIcon" "TrashIcon"
TrashIcon V2.3, by Mark McPhereson
Available on Aminet
@endnode
@node "E_compiler" "Amiga E"
Amiga E was written by Wouter van Oortmerssen, he describes it as follows.
@{b}From E.guide@{ub}:
E is an object oriented / procedural / unpure functional higher programming
language, mainly influenced by languages such as C++, Ada, Lisp etc. It is a
general-purpose programming language, and the Amiga implementation is
specifically targeted at programming system applications. The number of
features of the language is really too great to sum up entirely, and include:
speed of >20000 lines/minute on a 7 Mhz amiga, inline assembler and linker
integrated into compiler, large set of integrated functions, great module
concept with v39 includes as modules, flexible type-system, quoted
expressions, immediate and typed lists, parametric and inclusion polymorphism,
exception handling, inheritance, data-hiding, methods, multiple return values,
default arguments, register allocation, fast memory management, unification,
LISP-Cells, gui-toolkit, (macro-) preprocessor, very intuitive and powerful
source-level debugger, easy .library linking, and much more...
This is what 'HelloWorld' looks like in E:
/* nominated for Most Boring Example */
PROC main()
WriteF('Hello, World!\n')
ENDPROC
@endnode
@node "Legal" "Copyright and Distribution"
ETrashCan is Copyright
1995 by @{"Andrew
Cook" link "Author" 0}
This program is MailWare. If you like it and use it regularly, then please
send @{"me" link "Author" 0} a nice scenic postcard of the town/city/country where you live. If
that's too much fuss, then just send me some email and let me know you're
using the program.
As is traditional, this program has absolutely no warranty. If you lose
important files or your computer blows up because you're using ETrashCan then
hard luck. I can in no way be held responsible.
On the other hand, I'm eager to hear about any bugs/problems you may have with
the program so I can fix them.
This program archive may be freely distributed on floppy disks on a non-profit
making basis. It may be included on Aminet and Fred Fish CD-ROMS. If you want
to put it on any other CD-ROMS or Magazine coverdisks please contact me first.
@endnode
@node "history" "The History of ETrashCan"
@{b}Version 1.0 (29.11.95)@{ub}
First (locally) distributed version.
@{b}Version 1.1 (29.11.95)@{ub}
Added support for seperate icon images for full and empty
trashcans.
First Aminet release.
@endnode